#!/usr/bin/python

# This is a client.py file

import socket

s = socket.socket()
host = socket.gethostname()
port = 12345

s.connect((host,port))
while True:
	recv = s.recv(1024)
	if recv == 'Disconnect':
		print "Disconnected from server"
		s.close
		break
	print "Server: ",recv
	str = raw_input("You: ")	
	s.send(str)


